﻿using System.Web.Security;

namespace MinistryManager.Util.Authentication
{
    public class SessionFormsAuthentication : IFormsAuthentication
    {
        public void SetAuthenticationUser(string username)
        {
            FormsAuthentication.SetAuthCookie(username, false);
        }

        public string GetAuthenticatedUser()
        {
            return FormsAuthentication.GetAuthCookie(FormsAuthentication.FormsCookieName, false).ToString();
        }
    }
}